package com.oocl.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Customer {
	private String id;
	private String cname;
	private boolean sex;
	private double sal;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birth;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public double getSal() {
		return sal;
	}
	public void setSal(double sal) {
		this.sal = sal;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", cname=" + cname + ", sex=" + sex
				+ ", sal=" + sal + ", birth=" + birth + "]";
	}
	
	
		
}
